package jmine.tec.persist.schema.embedded;

import javax.persistence.Column;
import javax.persistence.Embeddable;

import jmine.tec.persist.annotation.Constraint;
import jmine.tec.persist.schema.common.MockEnum;
import bancosys.tec.component.Documentation;

@Embeddable
public class EmbeddedField {

    private Integer integer;

    private String string;

    private MockEnum enumeration;

    /**
     * @return the integer
     */
    @Column(name = "VL_INT", nullable = false, precision = 5)
    @Documentation("VALOR INTEIRO")
    public Integer getInteger() {
        return this.integer;
    }

    /**
     * @return the string
     */
    @Column(name = "VL_STR", length = 12)
    @Documentation("VALOR STRING")
    public String getString() {
        return this.string;
    }

    /**
     * @return the enumeration
     */
    @Column(name = "VL_ENUM")
    @Constraint(suffix = "0")
    @Documentation("VALOR ENUMERADO")
    public MockEnum getEnumeration() {
        return this.enumeration;
    }

    /**
     * @param integer the integer to set
     */
    public void setInteger(Integer integer) {
        this.integer = integer;
    }

    /**
     * @param string the string to set
     */
    public void setString(String string) {
        this.string = string;
    }

    /**
     * @param enumeration the enumeration to set
     */
    public void setEnumeration(MockEnum enumeration) {
        this.enumeration = enumeration;
    }
}
